package com.eascs.notice.entity;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

@Entity
@Table(name = "o2o_payments_plan")
public class O2oNoticeLetterEntity {

	/**
	 * 还款计划id，关联主使用程序生成  select uuid()
	 */
	@Id
	@Column(name = "payments_id")
	private String payments_id;
	/**
	 * 单据编号
	 */
	@Column(name = "bill_code")
	private String bill_code;
	/**
	 * 借款人名字
	 */
	@Column(name = "name")
	private String name;
	/**
	 * 借款人身份证
	 */
	@Column(name = "id_number")
	private String id_number;
	/**
	 * 期数
	 */
	@Column(name = "periods")
	private int periods;
	/**
	 * 计划还款时间
	 */
	@Column(name = "payments_date")
	private Date payments_date;
	/**
	 * 剩余本金
	 */
	@Column(name = "residual_principal")
	private double residual_principal;
	/**
	 * 计划还款本金
	 */
	@Column(name = "pay_principal")
	private double pay_principal;
	/**
	 * 计划还款利息
	 */
	@Column(name = "pay_interest")
	private double pay_interest;
	/**
	 * 是否删除Y,N
	 */
	@Column(name = "is_del")
	private String is_del;
	/**
	 * 1手动填写，2excel导入，3银行数据
	 */
	@Column(name = "data_type")
	private String data_type;
	/**
	 * 操作时间
	 */
	@Column(name = "oprate_time")
	private Date oprate_time;
	/**
	 * 操作人
	 */
	@Column(name = "oprate_psn")
	private String oprate_psn;

	public void setPayments_id(String payments_id) {
		this.payments_id = payments_id;
	}

	public String getPayments_id() {
		return payments_id;
	}

	public void setBill_code(String bill_code) {
		this.bill_code = bill_code;
	}

	public String getBill_code() {
		return bill_code;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getName() {
		return name;
	}

	public void setId_number(String id_number) {
		this.id_number = id_number;
	}

	public String getId_number() {
		return id_number;
	}

	public void setPeriods(int periods) {
		this.periods = periods;
	}

	public int getPeriods() {
		return periods;
	}

	public void setPayments_date(Date payments_date) {
		this.payments_date = payments_date;
	}

	public Date getPayments_date() {
		return payments_date;
	}

	public void setResidual_principal(double residual_principal) {
		this.residual_principal = residual_principal;
	}

	public double getResidual_principal() {
		return residual_principal;
	}

	public void setPay_principal(double pay_principal) {
		this.pay_principal = pay_principal;
	}

	public double getPay_principal() {
		return pay_principal;
	}

	public void setPay_interest(double pay_interest) {
		this.pay_interest = pay_interest;
	}

	public double getPay_interest() {
		return pay_interest;
	}

	public void setIs_del(String is_del) {
		this.is_del = is_del;
	}

	public String getIs_del() {
		return is_del;
	}

	public void setData_type(String data_type) {
		this.data_type = data_type;
	}

	public String getData_type() {
		return data_type;
	}

	public void setOprate_time(Date oprate_time) {
		this.oprate_time = oprate_time;
	}

	public Date getOprate_time() {
		return oprate_time;
	}

	public void setOprate_psn(String oprate_psn) {
		this.oprate_psn = oprate_psn;
	}

	public String getOprate_psn() {
		return oprate_psn;
	}
}
